package com.be.beadmin.device.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author: chenxu
 * @Date: 2023/7/28 20:17
 * @Description: 巡检任务子表
 */
@Table(name="T_DE_InspectItem")
@Data
@Entity
public class InspectItem extends BaseEntity {
    @Column(columnDefinition = "VARCHAR(50) COMMENT '唯一标识'")
    private String uniqueIdentifier;

    @Column(columnDefinition = "VARCHAR(20) COMMENT '巡检任务号'")
    private String taskId;

    @Column(columnDefinition = "VARCHAR(20) COMMENT '检查项目'")
    private String itemName;

    @Column(columnDefinition = "VARCHAR(200) COMMENT '检查描述'")
    private String itemDesc;

    @Column(columnDefinition = "VARCHAR(20) COMMENT '检查结果 正常/异常'")
    private String itemResult;

    @Column(columnDefinition = "VARCHAR(20) COMMENT '设备编码'")
    private String deviceId;

    @Column(columnDefinition = "VARCHAR(200) COMMENT '问题描述'")
    private String issue;

    @Column(columnDefinition = "MEDIUMBLOB  COMMENT '附件'")
    private byte[] attachment;

    @Column(columnDefinition = "VARCHAR(20) COMMENT '处理人'")
    private String assignedTo;

    @Column(columnDefinition = "VARCHAR(200) COMMENT '备注'")
    private String notes;

}
